//package com.usaas.search.controller.app;
//
//
//import com.usaas.common.annotation.Log;
//import com.usaas.common.core.controller.BaseController;
//import com.usaas.common.core.domain.AjaxResult;
//import com.usaas.common.enums.BusinessType;
//import com.usaas.common.enums.OperatorType;
//import com.usaas.common.utils.poi.ExcelUtil;
//import com.usaas.search.dto.PlatWelfareMessageDto;
//import com.usaas.search.service.IPlatWelfareMessageService;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.PostMapping;
//import org.springframework.web.bind.annotation.RequestBody;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RestController;
//
//import javax.servlet.http.HttpServletResponse;
//import java.util.List;
//
///**
// * 福利通知Controller
// *
// * @author Helios
// * @date 2024-08-14
// */
//@RestController
//@RequestMapping("/app/search/platWelfareMessage")
//public class AppPlatWelfareMessageController extends BaseController {
//
//    @Autowired
//    private IPlatWelfareMessageService platWelfareMessageService;
//
//    /**
//     * 查询福利通知列表
//     */
//    @PostMapping("/list")
//    @Log(title = "app端福利通知list查询", businessType = BusinessType.OTHER, operatorType = OperatorType.MOBILE)
//    public AjaxResult list(@RequestBody PlatWelfareMessageDto platWelfareMessageDto) {
//        List<PlatWelfareMessageDto> list = platWelfareMessageService.queryList(platWelfareMessageDto);
//        return AjaxResult.success(list);
//    }
//
//
//    /**
//     * 查询客户端用户基础信息分页列表
//     */
//    @Log(title = "app端福利通知page查询", businessType = BusinessType.OTHER, operatorType = OperatorType.MOBILE)
//    @PostMapping("/page")
//    public AjaxResult page(@RequestBody PlatWelfareMessageDto platWelfareMessageDto) {
//        return platWelfareMessageService.queryPage(platWelfareMessageDto);
//    }
//
//
//    /**
//     * 导出福利通知列表
//     */
//    @Log(title = "app端福利通知列表导出", businessType = BusinessType.EXPORT, operatorType = OperatorType.MOBILE)
//    @PostMapping("/export")
//    public void export(HttpServletResponse response, @RequestBody PlatWelfareMessageDto platWelfareMessageDto) {
//        List<PlatWelfareMessageDto> list = platWelfareMessageService.queryList(platWelfareMessageDto);
//        ExcelUtil<PlatWelfareMessageDto> util = new ExcelUtil<>(PlatWelfareMessageDto.class);
//        util.exportExcel(response, list, "福利通知数据");
//    }
//
//    /**
//     * 获取福利通知详细信息
//     */
//    @Log(title = "app端福利通知详细信息", businessType = BusinessType.OTHER, operatorType = OperatorType.MOBILE)
//    @PostMapping(value = "/getInfo")
//    public AjaxResult getInfo(@RequestBody PlatWelfareMessageDto platWelfareMessageDto) {
//        return AjaxResult.success(platWelfareMessageService.queryById(platWelfareMessageDto.getId()));
//    }
//
//    /**
//     * 新增福利通知
//     */
//    @Log(title = "app端福利通知新增", businessType = BusinessType.INSERT, operatorType = OperatorType.MOBILE)
//    @PostMapping(value = "/add")
//    public AjaxResult add(@RequestBody PlatWelfareMessageDto platWelfareMessageDto) {
//        return toAjax(platWelfareMessageService.add(platWelfareMessageDto));
//    }
//
//    /**
//     * 修改福利通知
//     */
//    @Log(title = "app端福利通知修改", businessType = BusinessType.UPDATE, operatorType = OperatorType.MOBILE)
//    @PostMapping(value = "/edit")
//    public AjaxResult edit(@RequestBody PlatWelfareMessageDto platWelfareMessageDto) {
//        return toAjax(platWelfareMessageService.update(platWelfareMessageDto));
//    }
//
//    /**
//     * 删除福利通知
//     */
//    @Log(title = "app端福利通知删除", businessType = BusinessType.DELETE, operatorType = OperatorType.MOBILE)
//    @PostMapping("/del}")
//    public AjaxResult del(@RequestBody PlatWelfareMessageDto platWelfareMessageDto) {
//        return toAjax(platWelfareMessageService.removeBatch(platWelfareMessageDto.getIds()));
//    }
//
//}
